package com.CmJava.crowd.service;

import com.CmJava.crowd.entity.ResultEntity;

import javax.mail.MessagingException;

public interface EmailService {
    ResultEntity checkLoginEmail(String sendHost, String password) throws MessagingException;
    ResultEntity sendTextEmail(String sendHost,String password,String recipientHost,String subject,String textMessage) throws MessagingException;
    ResultEntity sendFileEmail(String sendHost,String password,String recipientHost,String subject,String htmlMessage);
    ResultEntity sendHtmlEmail(String sendHost,String password,String recipientHost,String subject,String fileMessage);

    ResultEntity getEmail(String sendHost, String password);

    ResultEntity readedThisEmail(String sendHost, String password, String address, String subject, String date);
}
